<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <include file="Pub:head"/>

    <script type="text/javascript" src="__PUBLIC__/js/showdate.js"></script>
    <script type="text/javascript">
        function check(fr) {
            if (fr.xumoney.value == "") {
                alert('客户续费不能为空！');
                fr.xumoney.focus();
                return false
            }
            if (fr.xudate.value == "") {
                alert('续费日期不能为空！');
                fr.xudate.focus();
                return false
            }
            return true
        }


    </script>
</head>
<body>

<DIV class="infoBox">
    <table class="tableStyle">
        <tr><td>
            <form id="form1" onSubmit="return check(this)" name="form1" method="post"
                  action="__APP__/kefu/savexufei/id/{$yewuid}/type/{$type}">
                <TABLE width="100%" border=0 align="left" cellPadding=0 cellSpacing=0>
                    <TBODY>
                    <tr>
                    <td colspan="2" align="center" class="pages" bgcolor="#FFFFFF">
                        <div class="pages">
                            <h2>客户续费记录填写</h2></div>
                    </td>
                    </tr>
                    <TR>
                        <TD class=infoBoxTd width=68>客户续费：</TD>
                        <TD width="446">
                            <INPUT style="WIDTH: 300px" id="xumoney" class="textinput" name="xumoney" value="{$xufei.xumoney}" />
                        </TD>
                    </TR>

                    <TR>
                        <TD class=infoBoxTd width=68>续费日期：</TD>
                        <TD width="446">
                            <input type="text" id="xudate" name="xudate"  onclick="return Calendar('xudate');" class="textinput"
                                   value="<?php if($xufei!=null&& $xufei['xudate']!='0000-00-00 00:00:00') echo date('Y-m-d',strtotime($xufei['xudate'])); ?>"/>
                        </TD>
                    </TR>

                    <TR>
                        <TD class=infoBoxTd width=68>续费备注：</TD>
                        <TD width="446"><textarea name="remark" rows="2" cols="20" id="remark" class="formTextarea"
                                                  style="height:50px;width:400px;"></textarea></TD>
                    </TR>

                    <TR>
                        <TD class=infoBoxTd>&nbsp;</TD>
                        <TD>
                            <input class="buttons" type="submit" value="保存数据"/></TD>
                    </TR>
                    </TBODY>
                </TABLE>
            </FORM>
        </td></tr>
        <tr><td>
            <table width="100%" class="data_list">
                <tr>
                    <th width="120px">续费日期</th>
                    <th width="120px">续费记录</th>
                    <th>备注</th>
                    <th>操作</th>
                </tr>
                <volist name="accounts_list" id="vo">
                    <tr>
                        <td>{$vo['xudate']}</td>
                        <td align="left">{$vo['xumoney']}</td>
                        <td align="left">{$vo['remark']}</td>
                        <td><a href="{:U('kefu/delxufei',array('id'=>$vo['id']))}">删除</a></td>
                    </tr>
                </volist>
                <tr>
                    <td colspan="4" align="center" bgcolor="#FFFFFF">
                        <div class="fenye"> {$pageshow}</div>
                    </td>
                </tr>
            </table>

        </td></tr>
    </table>
</DIV>

</body>
</html>